package com.endbd.feignapi.model.warehouse;
import java.util.Date;

import com.endbd.feignapi.model.marketing.Order;
import com.endbd.feignapi.model.system.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString


public class CkWarehouse {

  private Integer id;
  private String indent;  private Order order;
  private Integer warehouseId;    private Warehouse warehouse;
  @JsonProperty("cDate")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date cDate;
  private Integer userId;         private User user;
  private String state;

  public void setcDate(Date cDate) {
    if (cDate.equals("")){
      cDate = null;
    }
    this.cDate = cDate;
  }
}
